package com.sky.course.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sky.common.annotation.Excel;
import com.sky.common.core.domain.BaseEntity;

/**
 * 课程管理对象 tb_course
 * 
 * @author ruoyi
 * @date 2025-08-31
 */
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 课程编码 */
    @Excel(name = "课程编码")
    private String courseCode;

    /** 课程学科 */
    @Excel(name = "课程学科")
    private String courseSubject;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 课程价格（单位：分） */
    @Excel(name = "课程价格", readConverterExp = "单=位：分")
    private Long coursePrice;

    /** 适用人群 */
    @Excel(name = "适用人群")
    private String targetAudience;

    /** 课程介绍 */
    @Excel(name = "课程介绍")
    private String courseIntroduction;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCourseCode(String courseCode) 
    {
        this.courseCode = courseCode;
    }

    public String getCourseCode() 
    {
        return courseCode;
    }

    public void setCourseSubject(String courseSubject) 
    {
        this.courseSubject = courseSubject;
    }

    public String getCourseSubject() 
    {
        return courseSubject;
    }

    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }

    public void setCoursePrice(Long coursePrice) 
    {
        this.coursePrice = coursePrice;
    }

    public Long getCoursePrice() 
    {
        return coursePrice;
    }

    public void setTargetAudience(String targetAudience) 
    {
        this.targetAudience = targetAudience;
    }

    public String getTargetAudience() 
    {
        return targetAudience;
    }

    public void setCourseIntroduction(String courseIntroduction) 
    {
        this.courseIntroduction = courseIntroduction;
    }

    public String getCourseIntroduction() 
    {
        return courseIntroduction;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseCode", getCourseCode())
            .append("courseSubject", getCourseSubject())
            .append("courseName", getCourseName())
            .append("coursePrice", getCoursePrice())
            .append("targetAudience", getTargetAudience())
            .append("courseIntroduction", getCourseIntroduction())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
